/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.news;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.news.News;

/**
 * @author Administrator (email:granzy@sohu.com)
 * @since 2013-02-04
 */
public interface NewsService {

    /****************************************
     * Insert a instace of News
     ****************************************/
    void insert(News news) throws Exception;

    /****************************************
     * Insert instaces of News
     ****************************************/
    void batchInsert(News news) throws Exception;

    /****************************************
     * Delete a instace of News
     ****************************************/
    void delete(News news) throws Exception;

    /****************************************
     * Delete instaces of News
     ****************************************/
    void batchDelete(News news) throws Exception;

    /****************************************
     * Update a instace of News
     ****************************************/
    void update(News news) throws Exception;

    /****************************************
     * Query instaces of News
     ****************************************/
    List<BaseModel> queryAsList(News news) throws Exception;

    /****************************************
     * Query a instaces of News
     ****************************************/
    BaseModel queryAsObject(News news) throws Exception;
}
